The rewriting calculus as a semantics to strategy application. Application to ELAN
نویسندگان
چکیده
Objects like rewrite rules and strategies are of very general use and interest in computer science. They are especially useful when modeling inference based systems like logical frameworks, theorem provers, constraint solvers, expert systems, transition systems. In order to formalize the concept of rule application, we have designed a calculus of explicit rule application called the rewritingor ρ-calculus. It gives a precise meaning to the definition of strategies and to the application of a strategy to an object. We present the ρ-calculus and show why it embeds in a uniform settings standard term rewriting as well as lambda-calculus. This allows us to describe conveniently strategies as well as strategy application even in the case of non-deterministic strategies. The ELAN [2] language has two first class objects: rules and strategies. We show how the semantics of the language can be described in a subset of the ρ-calculus. Rewrite rules allow to describe the computational part as well as the deductive part of logical framework. They are consequently very attractive when dealing with deduction modulo [5] or the Poincaré principle [1]. ELAN allows also to realize in a quite natural way the deduction modulo paradigm by implementing computations with a builtin leftmost-innermost strategy and deduction with user defined strategies. The language concepts and expressiveness have been successfully applied to theorem proving [4, 6], constraint programming as well as contraints solving [3]. This will be demonstrated on several examples. The ELAN environment together with its documentation and a lots of examples is freely available at http://www.loria.fr/ELAN.
منابع مشابه
The Rewriting Calculus as a Semantics of ELAN
Rewriting techniques are now recognized as a fundamental concept in many areas of computer science including mechanized theorem proving and operational semantics of programming languages. From a conceptual as well as operational point of view, the notion of rewrite rule application is crucial. It leads immediately to the concept of rewriting strategy which fully defines the way several rules ar...
متن کاملRewriting and Multisets in ρ-calculus and ELAN
The ρ-calculus is a new calculus that integrates in a uniform and simple setting first-order rewriting, λ-calculus and non-deterministic computations. The main design concept of the ρ-calculus is to make all the basic ingredients of rewriting explicit objects, in particular the notions of rule application and multisets of results. This paper describes the calculus from its syntax to its basic p...
متن کاملThe rewriting calculus - Part II
The ρ-calculus integrates in a uniform and simple setting first-order rewriting, λ-calculus and nondeterministic computations. Its abstraction mechanism is based on the rewrite rule formation and its main evaluation rule is based on matching modulo a theory T . We have seen in the first part of this work the motivations, definitions and basic properties of the ρ-calculus. This second part is fi...
متن کاملREM (Reduce Elan Machine): Core of the New ELAN Compiler
ELAN is a powerful language and environment for specifying and prototyping deduction systems in a language based on rewrite rules controlled by strategies. It offers a natural and simple logical framework for the combination of the computation and deduction paradigms. It supports the design of theorem provers, logic programming languages, constraint solvers and decision procedures. ELAN takes f...
متن کاملCombining Higher-Order and First-Order Computation Using ρ-calculus: Towards a semantics of ELAN
The ρ-calculus permits to express in a uniform and simple way firstorder rewriting, λ-calculus and non-deterministic computations as well as their combination. In this paper, we present the main components of the ρ-calculus and we give a full first-order presentation of this rewriting calculus using an explicit substitution setting, called ρσ, that generalizes the λσ-calculus. The basic propert...
متن کامل